Sha256: ea15ca43a1eda5e74558071d6a6592d34752caade37b0f80e587bef2e25c981a

Contents?: true

Size: 1.77 KB

Versions: 3

Compression:

Stored size: 1.77 KB

Contents

[![Build Status](http://jenkins.talkwit.tv/buildStatus/icon?job=u2i/ns_settings_ui/master)](http://jenkins.talkwit.tv/job/u2i/job/ns_settings_ui/job/master/)

# NsSettingsUi

## Installation

Add this line to your application's Gemfile:

    gem 'ns_settings_ui'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install ns_settings_ui

Install migrations:

    $ rake ns_settings_ui:install:migrations

And run db:migrate in your application

    $ rake db:migate

## Configuration

Add ns_setting_ui initializer to config/initializers/ns_settings_ui.rb

```
if defined?(NsSettingsUi)
  NsSettingsUi.layout = nil
  NsSettingsUi.parent_controller = ActionController::Base
end
```

You can modify NsSettingsUi variables in order to:
* `NsSettingsUi.layout` - set a layout from your application
* `NsSettingsUi.parent_controller` - choose a controller that NsSettingUi controllers will inherit from

## Testing
This engine is used by NTTR and socialguide. Upto version 1.1 it support Rails 3.2 and 4.2. Since version 1.2 it support Rails 4.2 and 5.0.
It uses [Appraisal](https://github.com/thoughtbot/appraisal) gem with a set up similar to [permitters gem](https://github.com/permitters/permitters) to give you an easy way of testing the code under multiple Rails versions.

To bundle install for each appraisal defined:

`appraisal install`

And then to run specs for all the appraisals:

`appraisal bundle exec rspec spec`

Or a specific one:

`appraisal rails_4.2 bundle exec rspec spec`

## Contributing

1. Fork it ( http://github.com/<my-github-username>/ns_settings_ui/fork )
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ns_settings_ui-1.4.0 README.md
ns_settings_ui-1.3.0 README.md
ns_settings_ui-1.2.0 README.md