Adds Filemaker Rest to the orm_adaptor project.
Provides a single point of entry for popular ruby ORMs. Its target audience is gem authors who want to support more than one ORM.
For more information see the orm_adapter project.
A Ruby client for FileMaker's Data API with ActiveRecord-ish ORM features.
For more information see the fmrest-ruby gem.
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install orm_adapter-fmrest
Devise is a flexible authentication solution for Rails.
For more information see the Devise.
And now you can use Devise authentication based on Filemaker REST ORM.
Add the following lines to Gemfile:
gem 'fmrest-ruby' gem 'orm_adapter-fmrest' gem 'devise'
And then configure Devise using "--orm fmrest" parameter:
$ rails generate devise:install --orm fmrest $ rails generate devise User --orm fmrest
After that you can create User model:
class User < FmRest::Layout layout('your_user_layout') extend Devise::Models devise :database_authenticatable, :rememberable, :trackable end
Known Limitations and Issues
- There is no unit test. Fill free to add it.
Part of the code and logic (i.e. devise compatibility) is ripped from orm_adapter-her.
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
The gem is available as open source under the terms of the MIT License.