Sha256: 4eaf408512616dfc9a269ce779ab6cee783af12f7def60a265f602620904d7ff

Contents?: true

Size: 258 Bytes

Versions: 10

Compression:

Stored size: 258 Bytes

Contents

module AdminMessagesControllerExtensions
  def self.included(base)
    base.class_eval { 
      before_filter :get_group, :only => :new
    }
  end

protected

  def get_group
    model.group = Group.find(params[:group_id]) if params[:group_id]
  end
end



Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
radiant-reader_group-extension-1.2.4 lib/admin_messages_controller_extensions.rb
radiant-reader_group-extension-1.2.3 lib/admin_messages_controller_extensions.rb
radiant-reader_group-extension-1.2.2 lib/admin_messages_controller_extensions.rb
radiant-reader_group-extension-1.2.1 lib/admin_messages_controller_extensions.rb
radiant-reader_group-extension-1.2.0 lib/admin_messages_controller_extensions.rb
radiant-reader_group-extension-1.1.2 lib/admin_messages_controller_extensions.rb
radiant-reader_group-extension-1.1.1 lib/admin_messages_controller_extensions.rb
radiant-reader_group-extension-1.1.0 lib/admin_messages_controller_extensions.rb
radiant-reader_group-extension-1.0.1 lib/admin_messages_controller_extensions.rb
radiant-reader_group-extension-1.0.0 lib/admin_messages_controller_extensions.rb